#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void leftRound(char* str, int k) {
    int len = strlen(str);
    int time = k % len;
    char tmp[256] = { 0 };

    strcpy(tmp, str + time); 
    strncat(tmp, str, time); 
    strcpy(str, tmp);
}

int main() {
    char str[] = "abcdef";
    leftRound(str, 7);
    printf("%s\n", str);
    return 0;
}